<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html"; charset="UTF-8">
    <title>PersonJsp</title>
</head>
<body>
<jsp:useBean id="person" class="com.example.javabeabtest.javaBeanSamples.Person" scope="page"></jsp:useBean>
<div>
  <ul>
    <li>
      姓名:<jsp:getProperty  property="name" name="person"/>
    </li>
    <li>
      性别:<jsp:getProperty  property="sex" name="person"/>
    </li>
    <li>
      年龄:<jsp:getProperty  property="age" name="person"/>
    </li>
    <li>
      已婚:<jsp:getProperty  property="married" name="person"/>
    </li>
  </ul>
</div>
</body>
</html>
